//
//  NextFirstRowTableViewCell.m
//  LT
//
//  Created by dllo on 16/5/16.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "NextFirstRowTableViewCell.h"
#import "UIImageView+WebCache.h"


@implementation NextFirstRowTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubViews];
    }
    return  self;
}

//初始化控件并给坐标
-(void)createSubViews{

    self.photoImage = [[UIImageView alloc]init];
    //self.photoImage.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:self.photoImage];



}

-(void)layoutSubviews{
    [super layoutSubviews];
 self.photoImage.frame = CGRectMake(10* WIDTHCELL, 10* WIDTHCELL, (self.contentView.frame.size.width - 20), (self.contentView.frame.size.height - 10));

}

//setter方法赋值
-(void)setSubjectNext:(NextFourModel *)subjectNext{

    _subjectNext = subjectNext;
    
    [self.photoImage sd_setImageWithURL:[NSURL URLWithString:_subjectNext.photo] placeholderImage:[UIImage imageNamed:@"LETU"]];

}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
